package com.app.motion.robustmotion;

import android.os.Bundle;
import android.widget.TextView;

import androidx.annotation.Nullable;
import androidx.appcompat.app.AppCompatActivity;

import com.meituan.robust.patch.annotaion.Add;
import com.meituan.robust.patch.annotaion.Modify;

public class SecondActivity extends AppCompatActivity {

    private TextView mTextView;

    @Override
    @Modify
    protected void onCreate(@Nullable Bundle savedInstanceState) {
        super.onCreate(savedInstanceState);
        this.setContentView(R.layout.activity_second);

        mTextView = this.findViewById(R.id.tv_content);
        mTextView.setText(getNewContent());
    }

    private String getContentString() {
        String result = "hello world";
        return result;
    }


    @Add
    private String getNewContent() {
        return "hello my robust";
    }
}
